﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.Drawing;

namespace mogco.Structs
{
    [XmlRootAttribute("Settings")]
    public class SerializableSettings
    {
        [XmlElement("UseFreeImage")]
        public bool UseFreeImage { get; set; }
        [XmlElement("JPGQuality")]
        public int JPGQuality   { get; set; }
        [XmlElement("FilesMask")]
        public string FilesMask { get; set; }
        [XmlElement("PreviousPath")]
        public string PreviousPath { get; set; }
        [XmlElement("Resolution")]
        public Point Resolution { get; set; }
        [XmlElement("SavePath")]
        public string SavePath { get; set; }
        [XmlElement("SearchFilesRecursively")]
        public bool SearchFilesRecursively { get; set; }
        [XmlElement("RewriteExistsFiles")]
        public bool RewriteExistsFiles { get; set; }
        [XmlElement("ResolutionArray")]
        public List<Point> ResolutionArray { get; set; }
        [XmlElement("OpenPictureExtensions")]
        public mogco.Structs.Structs.PictureExtensions OpenPictureExtensions { get; set; }
        [XmlElement("SaveFormat")]
        public mogco.Structs.Structs.PictureExtensions SaveFormat { get; set; }
        /// <summary>
        /// Копировать структуру папок при конвертации
        /// </summary>
        [XmlElement("UseDirectoryTree")]
        public bool UseDirectoryTree { get; set; }
    }
}
